package com.team12.hotel404.service.serviceImpl;

import com.team12.hotel404.domain.Usro;
import com.team12.hotel404.domain.UsroExample;
import com.team12.hotel404.mapper.UsroMapper;
import com.team12.hotel404.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserRoleServiceImpl implements UserRoleService {

    @Autowired
    private UsroMapper usroMapper;
    @Override
    public List<Usro> findAllUserRole() {
        return usroMapper.selectByExample(new UsroExample());
    }

    @Override
    public Usro updateUserRole(Integer id) {
        return null;
    }

}
